import request from '@/request';

/*
* 任务大厅
*/
export const homeTask = (params) => {
	return request.get('/pm/transTask/taskCenter', params)
}

/*
* 领取任务
*/
export const receiveTask = async (params) => {
	return await request.get('/pm/transTask/receiveCompleteTask', params);
}

/*
* 我的任务
*/
export const myTask = (params) => {
	return request.request('/pm/transTask/taskInfoListForWx', params, {
		method: 'post',
		headers: {
			'Content-Type': 'application/x-www-form-urlencoded'
		}
	})
}

/*
* 我的任务 -> 统计总条数
*/
export const myTaskTotal = (params) => {
	return request.get('/pm/transTask/selectCountByAllType')
}
